//
//  UserCenterData.m
//  hsbank
//
//  Created by I_MAC on 15/10/14.
//  Copyright (c) 2015年 hsbank. All rights reserved.
//

#import "UserCenterData.h"

@implementation UserCenterData
@synthesize userInfo;
static UserCenterData * _user = nil;
+ (UserCenterData *)sharedInstance {
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        _user = [[self alloc] init];
    });
    return _user;
}

-(id)init {
    if (self = [super init]) {
        userInfo = [[NSMutableDictionary alloc] init];
    }
    return self;  
}

-(NSString *)grade{
    return [NSString getStringIsNotNull:userInfo[@"grade"]];
}
- (NSString *)iphone{
    return [NSString getStringIsNotNull:userInfo[@"iphone"]];
}
-(NSString *)integral{
    return [NSString getStringIsNotNull:userInfo[@"integral"]];
    
}

@end
